import requestClass from './request.js';
const request = new requestClass();

// 获取access-token
export const getWXAccessTokenApi = (paramsData) => {
	return request.get(`/pvms/wx/getWXAccessToken`, paramsData);
}

// 照片上传
export const uploadApi = (paramsData) => {
	return request.post(`/common/upload`, paramsData);
}
// export const ocrPlatenumApi = (img_url, access_token) => {
// 	return request.postOther(`/cv/ocr/platenum?img_url=${img_url}&access_token=${access_token}`);
// }

export const ocrPlatenumApi = (paramsData) => {
	return request.get(`/pvms/wx/getPlateNumber`, paramsData);
}

export const getWxAuthLink2Api = (paramsData) => {
	return request.get(`/pvms/wx/getWxAuthLink2`, paramsData);
}

export const getOpenIdApi = (paramsData) => {
	return request.get(`/pvms/wx/getOpenId`, paramsData);
}
export const getInfoApi = (paramsData) => {
	return request.get(`/getInfo`, paramsData);
}